package com.shoppingCart.dataobject;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * create By lihao
 */
@Entity
@Data
public class Customer {
    /**
    * 用户id，自增主键
    * */
    @Id
    private String userId;

    /**
    *  用户openid
    * */
    private String openId;
    /**
    *  用户余额
    * */
    private BigDecimal balance;

    /**
    * 用户保证金
    * */
    private BigDecimal guarantee;

    /**
     * 创建时间.
     */
    private Date createTime;

    /**
     * 更新时间.
     */
    private Date updateTime;

    /**
    * 用户状态
    * 0 正常 1 失效
    * */
    private Integer status;

    private String nickName;

    private String country;

    private String province;

    private String city;

}
